<HTML><HEAD><TITLE>make_sub_graph(+Graph, ++Nodes, -SubGraph)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(graph_algorithms)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>make_sub_graph(+Graph, ++Nodes, -SubGraph)</H1>
Creates a subgraph (projection on nodes) of a given graph
<DL>
<DT><EM>Graph</EM></DT>
<DD>a graph structure
</DD>
<DT><EM>Nodes</EM></DT>
<DD>a list of node numbers
</DD>
<DT><EM>SubGraph</EM></DT>
<DD>will be bound to a graph structure
</DD>
</DL>
<H2>Description</H2>
<P>
    Creates a sub-graph SubGraph of the original graph Graph. SubGraph has
    the same set of nodes as Graph, but only those edges that begin and end
    in the specified set of nodes Nodes.
    </P>
<H3>Modes and Determinism</H3><UL>
<LI>make_sub_graph(+, ++, -) is det
</UL>
<H2>See Also</H2>
<A HREF="../../lib/graph_algorithms/is_sub_graph-2.html">is_sub_graph / 2</A>
</BODY></HTML>
